<div ms-controller="appointment" class="appointment">
	<h1 class="title"><a href="#">预约管理</a></h1>
	<div class="appointmentTop">
		<ul>
			<li ms-click="toggle(0,'t')" class="current">待处理</li>
			<li ms-click="toggle(1,'c')">已处理</li>
			<li ms-click="toggle(2,'f')">已过期</li>
		</ul>
		<a class="bottom-right" ms-if="currentIndex === 0" ms-click="allDel">批量处理</a>
	</div>
	<table class="table ms-tabs" ms-if="currentIndex === 0">
		<thead>
			<tr>
				<th><input type="checkbox" data-duplex-changed="select_all_cb" ms-duplex-checked='select_all'/></th>
				<th>预约编号</th>
				<th>就诊人</th>
				<th>手机号</th>
				<th>预约时间</th>
				<th>预约状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody ms-repeat="appoint">
			<tr ms-if="el.delflag=='t'">
				<td><input type="checkbox" ms-duplex-number="selected" ms-attr-value='el.id'/></td>
				<td>{{el.regcode}}</td>
				<td>{{el.patientName}}</td>
				<td>{{el.telephone}}</td>
				<td>{{el.regtime  | date("yyyy-MM-dd HH:mm:ss")}}</td>
				<td><label ms-if="el.delflag=='t'">待处理</label><label ms-if="el.delflag=='f'">已过期</label>
				<label ms-if="el.delflag=='c'">已处理</label></td>
				<td class="last" ms-click="pending(el.id)">
					<div >
						<img src="modules/appointment/img/chuli.png"/>
						<h1>去处理</h1>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
	<table class="table ms-tabs" ms-if="currentIndex === 1">
		<thead>
			<tr>
				<th>预约编号</th>
				<th>就诊人</th>
				<th>手机号</th>
				<th>预约时间</th>
				<th>预约状态</th>
			</tr>
		</thead>
		<tbody ms-repeat="appoint">
			<tr ms-if="el.delflag=='c'">
				<td>{{el.regcode}}</td>
				<td>{{el.patientName}}</td>
				<td>{{el.telephone}}</td>
				<td>{{el.regtime  | date("yyyy-MM-dd HH:mm:ss")}}</td>
				<td class="red"><label ms-if="el.delflag=='t'">待处理</label><label ms-if="el.delflag=='f'">已过期</label>
				<label ms-if="el.delflag=='c'">已处理</label></td>
			</tr>
		</tbody>
	</table>
	<table class="table ms-tabs" ms-if="currentIndex === 2">
		<thead>
			<tr>
				<th>预约编号</th>
				<th>就诊人</th>
				<th>手机号</th>
				<th>预约时间</th>
				<th>预约状态</th>
			</tr>
		</thead>
		<tbody ms-repeat="appoint">
			<tr  ms-if="el.delflag=='f'">
				<td>{{el.regcode}}</td>
				<td>{{el.patientName}}</td>
				<td>{{el.telephone}}</td>
				<td>{{el.regtime  | date("yyyy-MM-dd HH:mm:ss")}}</td>
				<td class="red"><label ms-if="el.delflag=='t'">待处理</label><label ms-if="el.delflag=='f'">已过期</label>
				<label ms-if="el.delflag=='c'">已处理</label></td>
			</tr>
		</tbody>
	</table>
</div>
	
